<nz-card nzTitle="动作编辑" [nzExtra]="extraTemplate">
    <smart-editor [fields]="fields" [values]="data" #editor></smart-editor>
</nz-card>

<ng-template #extraTemplate>
    <button nz-button nzType="primary" (click)="onSubmit()">保存</button>
</ng-template>
